From 0122ecaa41b7329a5f29a8183f31679aa6e49764 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 11 Sep 2014 08:01:41 -0700 Subject: [PATCH] Run tests with the --target flag --- Makefile.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 5d3725bea..bf493ad07 100644 --- a/Makefile.in +++ b/Makefile.in @@ -66,6 +66,9 @@ define CARGO_TARGET cargo-$(1): $$(CARGO) "$$(CFG_RUSTC)" -v $$(CARGO) build --target $(1) $$(OPT_FLAG) $$(ARGS) + +test-unit-$(1): $$(CARGO) + $$(CARGO) test --target $(1) $$(only) endef $(foreach target,$(CFG_TARGET),$(eval $(call CARGO_TARGET,$(target)))) @@ -76,10 +79,7 @@ $(CARGO): src/snapshots.txt # === Tests -test: test-unit style no-exes - -test-unit: $(CARGO) - $(CARGO) test $(only) +test: test-unit style no-exes $(foreach target,$(CFG_TARGET),test-unit-$(target)) style: sh tests/check-style.sh -- 2.30.2